# makefile
# written by yaolunlun@sina.com
# version 1.0
# last update 09/13/2016

TOP_DIR		:= $(CURDIR)/
include $(TOP_DIR)/Env.make

dirs-y       =
dirs-y      += aliiot_sdk
dirs-y      += aliiot
dirs-y      += opendev

dirs-clean   = $(foreach dirs,$(dirs-y) $(dirs-n),$(dirs)-clean)
dirs-install = $(foreach dirs,$(dirs-y),$(dirs)-install)

all: $(dirs-y)

install: $(dirs-install)

clean: $(dirs-clean)
	sudo rm -rf $(PLATFORM_DIR)

# aliiot_sdk
aliiot_sdk:
	$(MAKE) libs -C aliiot_sdk
	$(MAKE) -C aliiot_sdk

aliiot_sdk-install:

aliiot_sdk-clean:
	$(MAKE) -C aliiot_sdk clean

# aliiot
aliiot:
	$(MAKE) -C aliiot

aliiot-install:
	$(MAKE) -C aliiot install

aliiot-clean:
	$(MAKE) -C aliiot clean

# opendev
opendev:
	$(MAKE) -C opendev

opendev-install:
	$(MAKE) -C opendev install

opendev-clean:
	$(MAKE) -C opendev clean

.PHONY: all clean $(dirs-y)


